package com.yunchang.springboot.mapper.caravan;

import com.yunchang.springboot.config.BaseDao;
import com.yunchang.springboot.models.DO.CaravanStockWarehouseData;
import org.apache.ibatis.annotations.Param;

/**
 * @author sjd
 * @data 2019/9/3 17:11
 */
public interface CaravanStockWarehouseDataMapper extends BaseDao<CaravanStockWarehouseData> {

//    /**
//     * 根据日期删除数据
//     *
//     * @param date
//     * @return
//     */
//    int deleteByDate(@Param("date") String date);
//
    /**
     * 根据参数获取一条数据
     *
     * @param stockId
     * @param wearhouseId
     * @return
     */
    CaravanStockWarehouseData getOneInfoByStockIdAndWearhouseId(@Param("stockId") String stockId, @Param("wearhouseId") String wearhouseId);

    /**
     * 获取最近的数据的日期
     * @return
     */
    String getLatestDate();
}
